Some code showing how to build a Game server for the js13kGames Competition.
Extract the files and install the third party libraries with npm
.
npm install
You can run the server locally with the following command:
npm run start:dev
You can reach the test server at http://localhost:3000
To build a minimal version use:
npm run build-rel
If you are developing you can watch the src directory (and automatically rebuild without compression) with
npm run watch
It allows players on the cloud to enter a nickname and level of ability and enter a lobby area which displays other players waiting to play. You can select a player to play with and launch a (trivial) game. you can log in with two different browser tabs to see it work.
The system is intended for a two player turn based game. You can see it running at https://js13ks-lobby.herokuapp.com/